package com.ruoyi.household.mapper;

import java.util.List;
import com.ruoyi.household.domain.HsHousehold;
import com.ruoyi.household.domain.ro.RegisterRo;
import com.ruoyi.user.domain.HsUser;
import com.ruoyi.user.domain.vo.HousehoodInfoVo;
import org.apache.ibatis.annotations.Param;

/**
 * 住户信息Mapper接口
 * 
 * @author ruoyi
 * @date 2024-07-25
 */
public interface HsHouseholdMapper 
{
    /**
     * 查询住户信息
     * 
     * @param id 住户信息主键
     * @return 住户信息
     */
    public HsHousehold selectHsHouseholdById(Long id);

    /**
     * 查询住户信息列表
     * 
     * @param hsHousehold 住户信息
     * @return 住户信息集合
     */
    public List<HsHousehold> selectHsHouseholdList(HsHousehold hsHousehold);

    /**
     *
     * @param hsHousehold 增加住户
     * @return
     */
    public int insertHsHousehold(HsHousehold hsHousehold);

    /**
     * 修改住户信息
     * 
     * @param hsHousehold 住户信息
     * @return 结果
     */
    public int updateHsHousehold(HsHousehold hsHousehold);

    /**
     * 删除住户信息
     * 
     * @param id 住户信息主键
     * @return 结果
     */
    public int deleteHsHouseholdById(Long id);

    /**
     * 批量删除住户信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHsHouseholdByIds(Long[] ids);
    int insertHsHouseholdRegister(RegisterRo registerRo);

    String[] getHousehold(@Param("householdFloorName") String householdFloorName,@Param("householdXqName") String householdXqName);

    HousehoodInfoVo getHousehoodInfo(Long id);

}
